package com.hzh302.restsecurity.rest;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rest/hello")
public class HelloRest {

	@RequestMapping(method = RequestMethod.GET)
	public Map<String, String> get() {
		Map<String, String> map = new HashMap<String, String>();
		map.put("data", "hello");
		return map;
	}
}
